/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Acknowledgement Detail Not Supported Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19640 (C-0-T19638-A19640-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getAcknowledgementDetailNotSupportedCode()
 * @model extendedMetaData="name='AcknowledgementDetailNotSupportedCode'"
 * @generated
 */
public enum AcknowledgementDetailNotSupportedCode implements Enumerator {
	/**
	 * The '<em><b>NS260</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NS260_VALUE
	 * @generated
	 * @ordered
	 */
	NS260(0, "NS260", "NS260"),

	/**
	 * The '<em><b>NS261</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NS261_VALUE
	 * @generated
	 * @ordered
	 */
	NS261(1, "NS261", "NS261"),

	/**
	 * The '<em><b>NS200</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NS200_VALUE
	 * @generated
	 * @ordered
	 */
	NS200(2, "NS200", "NS200"),

	/**
	 * The '<em><b>NS250</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NS250_VALUE
	 * @generated
	 * @ordered
	 */
	NS250(3, "NS250", "NS250"),

	/**
	 * The '<em><b>NS202</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NS202_VALUE
	 * @generated
	 * @ordered
	 */
	NS202(4, "NS202", "NS202"),

	/**
	 * The '<em><b>NS203</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NS203_VALUE
	 * @generated
	 * @ordered
	 */
	NS203(5, "NS203", "NS203");

	/**
	 * The '<em><b>NS260</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NS260</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NS260
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NS260_VALUE = 0;

	/**
	 * The '<em><b>NS261</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NS261</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NS261
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NS261_VALUE = 1;

	/**
	 * The '<em><b>NS200</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NS200</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NS200
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NS200_VALUE = 2;

	/**
	 * The '<em><b>NS250</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NS250</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NS250
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NS250_VALUE = 3;

	/**
	 * The '<em><b>NS202</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NS202</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NS202
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NS202_VALUE = 4;

	/**
	 * The '<em><b>NS203</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NS203</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NS203
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NS203_VALUE = 5;

	/**
	 * An array of all the '<em><b>Acknowledgement Detail Not Supported Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final AcknowledgementDetailNotSupportedCode[] VALUES_ARRAY =
		new AcknowledgementDetailNotSupportedCode[] {
			NS260,
			NS261,
			NS200,
			NS250,
			NS202,
			NS203,
		};

	/**
	 * A public read-only list of all the '<em><b>Acknowledgement Detail Not Supported Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<AcknowledgementDetailNotSupportedCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Acknowledgement Detail Not Supported Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AcknowledgementDetailNotSupportedCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			AcknowledgementDetailNotSupportedCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Acknowledgement Detail Not Supported Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AcknowledgementDetailNotSupportedCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			AcknowledgementDetailNotSupportedCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Acknowledgement Detail Not Supported Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AcknowledgementDetailNotSupportedCode get(int value) {
		switch (value) {
			case NS260_VALUE: return NS260;
			case NS261_VALUE: return NS261;
			case NS200_VALUE: return NS200;
			case NS250_VALUE: return NS250;
			case NS202_VALUE: return NS202;
			case NS203_VALUE: return NS203;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private AcknowledgementDetailNotSupportedCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //AcknowledgementDetailNotSupportedCode
